package com.appheader.rongmaphone.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by zhep on 2016/10/19.
 */
public class MyOpenHelper extends SQLiteOpenHelper {
    public MyOpenHelper(Context context) {
        super(context, "appheader.db", null, 1);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE IF NOT EXISTS \""+DBConst.TABLE_CLOUD+"\"(" +
                "\""+DBConst.CloudId+"\" TEXT(50,0) NOT NULL PRIMARY KEY ," +//AUTOINCREMENT
                "\""+DBConst.CloudName+"\" TEXT(50,0)," +
                "\""+DBConst.PicId+"\" TEXT(500,0)"+
                "\""+DBConst.LastModifyTime+"\" TEXT(50,0)," +")");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
